﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace NP.BPMReportPlatform.Entities.BPM_Business
{
    /// <summary>
    /// 调价 主表
    /// </summary>
    [SugarTable("AdjustDetail")]
    public class AdjustDetail: BaseLine
    {
        /// <summary>
        /// 产品属性
        /// </summary>
        public string ProductType { get; set; }

        /// <summary>
        /// 产品编码
        /// </summary>
        public string ProductCode { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName { get; set; }

        /// <summary>
        /// PDT
        /// </summary>
        public string PDT { get; set; }

        /// <summary>
        /// PDT组织
        /// </summary>
        public string PDTDesc { get; set; }

        /// <summary>
        /// 发货工厂
        /// </summary>
        public string SaleRegion { get; set; }

        /// <summary>
        /// 销售单位
        /// </summary>
        public string SalesUnit { get; set; }

        /// <summary>
        /// 单位转化KG
        /// </summary>
        public string ConversionKG { get; set; }

        /// <summary>
        /// 现价含税 (RMB/单位）
        /// </summary>
        public string CurrentPrice { get; set; }

        /// <summary>
        /// 现价不含税 (RMB/KG)
        /// </summary>
        public decimal? CurrentPriceNoTax { get; set; }

        /// <summary>
        /// 拟调价至含税（RMB/单位）
        /// </summary>
        public string AdjustPrice { get; set; }

        /// <summary>
        /// 拟调价至不含税 (RMB/KG)
        /// </summary>
        public decimal? AdjustPriceNoTax { get; set; }

        /// <summary>
        /// 调整幅度（%）
        /// </summary>
        public string AdjustPriceRange { get; set; }

        /// <summary>
        /// 月度用量预计
        /// </summary>
        public string FixedMonthlyAmount { get; set; }

        /// <summary>
        /// 生产加工费（元/KG）
        /// </summary>
        public decimal? ProcessingFee { get; set; }

        /// <summary>
        /// 生产加工费%（元/KG）
        /// </summary>
        public decimal? ProcessingFeeRatio { get; set; }

        /// <summary>
        /// 是否将合同拟结算价格同步到SAP
        /// </summary>
        public string SyncSAP { get; set; }

        /// <summary>
        /// RMC(移动平均价)
        /// </summary>
        public decimal? RMC { get; set; }

        /// <summary>
        /// RMC2（最新采购价）
        /// </summary>
        public decimal? RMC2 { get; set; }

        /// <summary>
        /// 调价前RMC%（移动平均价）
        /// </summary>
        public decimal? RMCRatio { get; set; }

        /// <summary>
        /// 调价前RMC2%（最新采购价）
        /// </summary>
        public decimal? RMC2Ratio { get; set; }

        /// <summary>
        /// 调价后RMC2% (移动平均价)
        /// </summary>
        public decimal? RMCRatioAfter { get; set; }

        /// <summary>
        /// 调价后RMC2%（最新采购价）
        /// </summary>
        public decimal? RMC2RatioAfter { get; set; }

        /// <summary>
        /// RMC2%报错提示
        /// </summary>
        public string RMC2ErroPrompt { get; set; }

        /// <summary>
        /// 扣减加工费后毛利（移动平均价）
        /// </summary>
        public decimal? GrossProfit1 { get; set; }

        /// <summary>
        /// 扣减加工费后毛利2(最新采购价)
        /// </summary>
        public decimal? GrossProfit2 { get; set; }

        /// <summary>
        /// 理论计算价格（RMB/KG）
        /// </summary>
        public decimal? TheoreticalPrice { get; set; }

        /// <summary>
        /// 是否满足公司报价要求
        /// </summary>
        public string PriceEstimation1 { get; set; }

        /// <summary>
        /// 是否满足行业毛利要求
        /// </summary>
        public string PriceEstimation2 { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
    }
}
